// const obj = Object.create({a: 1})

// console.log(Object.getPrototypeOf(obj))

function create(obj: any) {
    const Foo = function() {}
    Foo.prototype = obj
    return new (Foo as any)()
}

const obj2 = create({a: 'kaho'})
console.log(Object.getPrototypeOf(obj2))

export {}